import { createApp } from 'vue'
import { createPinia } from 'pinia'
import App from './App.vue'
// 引入Element Plus
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
// 引入Element Plus图标
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
// 引入路由配置
import router from './router'
import "@/index.css"
const app = createApp(App)
const pinia = createPinia()
import request from './utils/axios'; 

app.config.globalProperties.$http = request;

//录音组件样式
import 'font-awesome/css/font-awesome.min.css';


// 注册所有Element Plus图标
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}

// 使用插件
app.use(pinia)
app.use(ElementPlus)
app.use(router)

app.mount('#app')
